/*
** get_max_fd.c for zappy in /home/fassi_c//zappy2/zappouet/server/serveur_dir
**
** Made by clement fassi
** Login   <fassi_c@epitech.net>
**
** Started on  Wed Jun 29 11:27:46 2011 clement fassi
** Last update Thu Jun 30 13:55:16 2011 clement fassi
*/

#include "./utils/utils.h"

int		get_max_fd(t_list *list, int s)
{
  t_list	*tmp;
  int		nb;

  tmp = xmalloc(sizeof(*tmp));
  tmp = list;
  nb = s;
  while (tmp)
    {
      if (tmp->cs > nb)
	nb = tmp->cs;
      tmp = tmp->next;
    }
  return (nb);
}
